#ifndef FAKECHARGER_H
#define FAKECHARGER_H

#include "serialportmanager.h"
#include <QObject>
#include <QTimer>
class FakeCharger : public QObject
{
    Q_OBJECT
public:
    static const int CHARGER_SA = 0xab;

    explicit FakeCharger(SerialPortManager& portManager, QObject *parent = 0);
    
    void StartSending();
    void StopSending();
signals:
    
public slots:
    void SendMessage();
    void SendMaster();
    void setState(bool);
    void setMasterState(bool);
    void setChargeComplete(bool);

private:
    SerialPortManager& PortManager;
    QTimer MessageSendTimer;
    QTimer MasterSendTimer;
    quint8 SourceAddress;
    bool ChargeComplete;
    bool MasterState;
};

#endif // FAKECHARGER_H
